﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace Jzy.Workflow
{
    public partial class ContextMenu : UserControl
    {
        public ContextMenu()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("hello");
        }

        private void Rectangle_MouseEnter(object sender, MouseEventArgs e)
        {
            label.Text = "rectangle";
            MessageBox.Show("rectangle");
        }

        private void TextBlock_MouseEnter(object sender, MouseEventArgs e)
        {
            label.Text = "TextBlock_MouseEnter";
            MessageBox.Show("TextBlock_MouseEnter");
        }

        private void Button_MouseEnter(object sender, MouseEventArgs e)
        {
            ImageBrush brush = new ImageBrush();
            brush.ImageSource = new BitmapImage(new Uri("images/select_menu_bg.png",UriKind.Relative));
           
            bgRec.Fill = brush;
        }

        private void Button_MouseLeave(object sender, MouseEventArgs e)
        {
            bgRec.Fill = null;
        }

        
    }
}
